package com.aishua.fire.entity.account;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value="添加账户信息对象",description="添加账户信息对象")
@Data
public class  AddAccountInfo {

	@NotBlank(message="用户名不能为空")
	@ApiModelProperty(value="用户名",name="userName",example="小马")
	private String userName;
	@NotBlank(message="密码不能为空")
	@ApiModelProperty(value="用户密码",name="userPassword",example="0000")
	private String userPassword;
	@ApiModelProperty(value="联系人",name="aliasName",example="0000")
	@NotBlank(message="联系人不能为空")
	private String aliasName;

	@NotBlank(message="联系电话不能为空")
	@Pattern(regexp="^(13\\d{9}$)|(^14)[5,7]\\d{8}$|(^15[0,1,2,3,5,6,7,8,9]\\d{8}$)|(^17)[0,6,7,8]\\d{8}$|(^18\\d{9})$",message="不符合手机号规则")
	@ApiModelProperty(value="联系电话",name="phone",example="13857441952")
	private String phone;
	@ApiModelProperty(value="邮箱地址",name="emailAddr",example="1234@qq.com")
	private String emailAddr;


}
